home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / dev / c / GSys.lha / gsys / gsystem / GRequestFile.h < prev   
Encoding:
C/C++ Source or Header  |  2000-01-24  |  1.4 KB  |  77 lines

  1.  
  2. #ifndef GREQUESTFILE
  3. #define GREQUESTFILE
  4.  
  5. #ifdef GAMIGA
  6.  
  7. #include <exec/types.h>
  8.  
  9. #ifdef GAMIGA_PPC
  10. #include <powerup/ppcproto/exec.h>
  11. #include <powerup/ppcproto/dos.h>
  12. #include <powerup/ppcproto/asl.h>
  13. #else
  14. #include <proto/exec.h>
  15. #include <proto/dos.h>
  16. #include <proto/asl.h>
  17. #endif
  18.  
  19. #endif
  20.  
  21. #define RF_TITLETEXT        0x00000010
  22. #define RF_GSCREEN        0x00000020
  23. #define RF_PATTERNSHOW        0x00000030
  24. #define RF_REJECTPATTERN    0x00000031
  25. #define RF_ACCEPTPATTERN    0x00000032
  26. #define RF_INITPATTERN        0x00000033
  27. #define RF_INITPATH        0x00000040
  28. #define RF_SAVEMODE        0x00000050
  29. #define RF_MULTIFILES        0x00000060
  30. #define RF_ONLYDRAWERS        0x00000070
  31.  
  32. /*
  33.  
  34. TO DO:
  35.  
  36. Få pattern-opplegget til å funke like bra på amiga/pc
  37.  
  38. */
  39.  
  40.  
  41. class GRequestFile
  42. {
  43. public:
  44.     GRequestFile(GTagItem *TagList);    //GTagItem *TagList[]);
  45.     ~GRequestFile();
  46.     
  47.     BOOL RequestNewFile(GTagItem *TagList);
  48.  
  49.     class GRequestFile *NextGRequestFile;
  50.  
  51.     char FileName[256];    // Full path of selected file
  52.     BOOL Status;    // Was it cancelled(FALSE) or accepted(TRUE) on the last pop-up?
  53.  
  54. private:
  55.     class GScreen *GScreen;
  56.     STRPTR    TitleText;
  57.     STRPTR    InitPattern;
  58.     STRPTR    InitPath;
  59.     BOOL    PatternShow;
  60.     BOOL    RejectPattern;    
  61.     BOOL    AcceptPattern;
  62.     BOOL    SaveMode;
  63.     BOOL    MultiFiles;
  64.     BOOL    OnlyDrawers;
  65.  
  66. #ifdef GAMIGA
  67.     STRPTR GetFileName(struct FileRequester *FileReq)
  68.  
  69.     struct FileRequester *FileRequester;
  70.  
  71. #endif
  72. #ifdef GDIRECTX
  73. #endif
  74.  
  75. };
  76.  
  77. #endif /* GFILEREQUEST */